﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Web_HengliSeed.Test" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="ueditor/themes/default/ueditor.css" />
    <script src="ueditor/editor_all.js" type="text/javascript"></script>
    <script src="ueditor/editor_config.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <textarea cols="10" rows="10" runat="server" id="editor" ></textarea>
        <script type="text/javascript">
            var ue = new baidu.editor.ui.Editor();
            ue.render('editor');
            ue.addListener("selectionchange", function () {
                var state = ue.queryCommandState("source");
                var btndiv = document.getElementById("btns");
                if (btndiv) {
                    if (state) {
                        btndiv.style.display = "none";
                    } else {
                        btndiv.style.display = "";
                    }
                }

            });
</script>
    </div>
    <asp:Button runat="server" ID="btnSave" Text="show" onclick="btnSave_Click" />
    </form>
    
</body>

</html>
